Prev | Next

Wind and Gravity - Use the Force

<< | >>

How To Animate Wind Direction

Overview

The 3D Flag plug-in uses two parameters to determine the wind direction: Wind Dir Angle and Wind Dir Elevation. We'll show how these two values specify a direction. We'll also discuss ways to animate a changing wind direction.

How Wind Direction Is Calculated

Wind Dir Angle and Wind Dir Elevation are two angle values that 3D Flag uses to calculate the wind direction.

You can imagine Wind Dir Angle representing a rotation from the left to right. Wind Dir Elevation represents a rotation up and down.

Both angles are in degrees.

The image below shows how the Wind Dir Angle parameter goes from 0 degrees to 360 degrees. This parameter determines whether the wind blows to the left, to the right, towards the back of the scene, or towards the front of the scene.

Imagine standing with your arm pointed straight ahead. That's 0 degrees (Back). As you rotate your arm and body to the right, you'll get to 90 degrees (Right). Keep going and you'll have turned around 180 degrees (Forward). Continuing around, you'll hit 270 degrees (Left) before getting back to 0 degrees (which is also 360 degrees).

The next image shows how Wind Dir Elevation can raise the wind direction towards the sky or lower it towards the ground.

Imagine standing with your arm pointed at the horizon. That's 0 degrees (no elevation). As you raise your arm, you increase elevation in the positive direction. You'll eventually point straight up, 90 degrees (Up). As you lower your arm, elevation get more and more negative. You'll eventually point straight down, -90 degrees (Down).

Using these two values, you can make your wind point in any direction.

Animating Wind Direction

Let's make our flag rotate all the way around, starting to the right, and rotating clockwise.

  1. Open the "Quick Start.aep" project.
  2. In the Effect Controls window, find the Wind Dir Angle parameter. Turn on keyframing for that parameterby clicking on the stopwatch icon next to the parameter name.



    This sets a keyframe at time 0:00, with a value of 85.

    NOTE: Remember in the last section when we told you that the Direction Presets did not use absolute directions? That's why the Wind Dir Angle is 85 and not 90. 0, 90, 180, and 270 would be absolute directions. 85 is just a little off.
  3. Now move the time marker to 4 seconds, time 4:00.



  4. We want our flag to rotate once around. Click on the Wind Dir Angle value and drag to the right.

    As the angle increases, you'll see the flag rotating around its fixed points in a clockwise direction. Once the flag has made it back to the right, let go of the mouse button.

    The Wind Dir Angle should be about 445, which is one full rotation: 85 degrees + 360 degrees. Another keyframe is created at time 4:00 since we changed the parameter value.
  5. To watch the flag rotate around its locked points, open the Options window by clicking the 3D Flag logo in the Effect Controls window.



  6. When you're done watching the flag, click the OK button to close the Options window.

Now that we've seen how wind affects the flag, let's learn about gravity in the next section, Earth Or Moon: Gravity And Slow Motion.